package clases.GUI;


import android.app.Activity;
import android.content.Intent;

import android.os.Bundle;

import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.Button;


public class PantallaInicio extends Activity {
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.pantallainicio);
		Button btnAltaUsuario = (Button)findViewById(R.id.btnAltaUsuario);
		Button btnLogin = (Button)findViewById(R.id.btnLogin);
		
		btnAltaUsuario.setOnTouchListener(new OnTouchListener() {
		@Override
				public boolean onTouch(View v, MotionEvent event) {
					Intent intent = new Intent(PantallaInicio.this, AltaUsuario.class);
					intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
					startActivity(intent);
					return false;
				}
				
			
		});
		
		btnLogin.setOnTouchListener(new OnTouchListener() {
			@Override
					public boolean onTouch(View v, MotionEvent event) {
						Intent intent = new Intent(PantallaInicio.this, LoginUsuario.class);
						intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
						startActivity(intent);
						return false;
					}
					
				
			});
		
		
		
		


	}
}
